import service from "../utils/service";

export function login(data) {
  return service({
    url: `admin/login/userlogin`,
    method: "post",
    data: data,
  });
}
//手机验证码登录
export function loginipone(data) {
  return service({
    url: `admin/login/loginByCode`,
    method: "post",
    data: data,
  });
}
//获取验证码
export function logincode(data) {
  return service({
    url: `admin/login/getCode/`+data.phone,
    method: "post",
    data:data
  });
}